<div class="box">
	<div class="user_block">
		<div class="user_photo"> 
			<a href="<?php echo Yii::app()->createUrl('users/view',array('id'=>Yii::app()->user->id)); ?>">
				<?php echo $this->material_image(Yii::app()->user->id, Yii::app()->user->getState('avatar'), '187', 'images/' . Yii::app()->user->id); ?>
			</a>
		</div>
		<div class="user_name"><?php echo CHtml::encode(Yii::app()->user->name); ?></div>
		
		<div class="row"> <a href="<?php echo Yii::app()->createUrl('users/indexMessage') ?>" class="btn red br5"><?php echo Yii::t('main','My messages'); ?><span></span><i></i></a> </div>
		<div class="row"> <a href="<?php echo Yii::app()->createUrl('users/myObjects') ?>" class="btn red myObjects br5"><?php echo Yii::t('main','My Objects'); ?><span></span><i></i></a> </div>
		<div class="row"> <a href="<?php echo Yii::app()->createUrl('users/trips'); ?>" class="btn red trips br5"><?php echo Yii::t('main','My Trips'); ?><span></span><i></i></a> </div>
		<div class="row"> <a href="<?php echo Yii::app()->createUrl('users/update') ?>" class="btn red update br5"><?php echo Yii::t('main','My Account'); ?><span></span><i></i></a> </div>
		<!-- <div class="row"> <a href="<?php echo Yii::app()->createUrl('users/settings') ?>" class="btn red br5"><?php echo Yii::t('main','My Settings'); ?><span></span><i></i></a> </div> -->
		<div class="row"> <a href="<?php echo Yii::app()->createUrl('users/upload') ?>" class="btn red avatar br5"><?php echo Yii::t('main','Upload avatar'); ?><span></span><i></i></a> </div>
	</div>
</div>